﻿// CSharpLibTest.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。
//
#include <iostream>
#include "Test.h"


int main(int argc, char* argv[])
{
    char name[]{ "12321321321" };
    Test::Print(name);
    return 0;
}






# if 0
//Uri^ imgUri = gnew Uri("ms-appx:///pic.jpg");
//Windows::Foundation::IAsyncOperation<Windows::Storage::StorageFile^>^ file1 = StorageFile::GetFileFromApplicationUriAsync(imgUri);
//auto set = Windows::System::UserProfile::UserProfilePersonalizationSettings::Current;
//int a = set->TrySetLockScreenImageAsync(file1->GetResults());
String^ name = System::Runtime::InteropServices::Marshal::PtrToStringAnsi((IntPtr)argv[1]);
LockscreenWin10::LockscreenApi^ api = gcnew LockscreenWin10::LockscreenApi();
// LockscreenWin10::LockscreenApi  api;
int a = api->SetLockscreenImageSync(name);
int aa = a;
printf("%d", a);
#endif 